package com.laboratory.manage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laboratory.manage.entity.PaperEntity;
import com.laboratory.manage.utils.PageUtils;
import com.laboratory.manage.utils.R;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Ricardo
 * @since 2023-05-12
 */
public interface PaperService extends IService<PaperEntity> {


    /*
    * 文件上传
    * */
    R upLoadFile(PaperEntity paper);


    /**
     * 修改文件
     */
    R updateFile(PaperEntity paper);

    /**
     * 分页
     */
    IPage<PaperEntity> getPage(int pageNum, int pageSize,PaperEntity paper);

    /**
     * 删除论文
     * @param ids
     * @return
     */
    boolean deleteByIds(Long[] ids);

    /**
     * 分页查询论文
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

}
